Skip to content

Java Migration Guide: Removed APIs#1879

Merged
renejeglinsky merged 5 commits into
mainfrom
java-migration
May 28, 2025
Merged

Java Migration Guide: Removed APIs#1879
renejeglinsky merged 5 commits into
mainfrom
java-migration

Conversation

@MattSchur
Copy link
Copy Markdown
Contributor

No description provided.

@MattSchur MattSchur requested a review from smahati as a code owner May 27, 2025 11:35
@MattSchur MattSchur requested review from agoerler and rjayasinghe May 27, 2025 11:37
Comment thread java/migration.md Outdated
Comment thread java/migration.md Outdated
Comment thread java/migration.md Outdated
Comment thread java/migration.md Outdated
Comment thread java/migration.md Outdated
Comment thread java/migration.md
- Removed deprecated methods:
- `com.sap.cds.ql.cqn.Modifier.search(String term)`, use `searchTerm(CqnSearchTermPredicate)` instead
- `com.sap.cds.ql.cqn.Modifier.selectListValue(Value<?> value, String alias)`, use `selectListValue(SelectableValue value, String alias)` instead
- `com.sap.cds.ql.SelectableValue.withoutAlias()`, use `as(String alias)` instead
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use as(String alias) instead

Do we need any replacement? Or can we just put the selectable value on the select list? Please double-check.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we need the replacement. SelectableValue does not extend CqnSelectListItem. All values on the select list shall have an implicit or explicit alias now.

@renejeglinsky renejeglinsky disabled auto-merge May 28, 2025 11:29
@renejeglinsky renejeglinsky merged commit 9316e91 into main May 28, 2025
4 checks passed
@renejeglinsky renejeglinsky deleted the java-migration branch May 28, 2025 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants